package shopping.feign01.controller;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class OrderController {
  
  private static final Logger log = LoggerFactory.getLogger(OrderController.class);
  
  @GetMapping("/order/reduce/{productId}")
  public String reduce(@PathVariable("productId") String productId) {
    log.info("feign01: reduce product id is {}", productId);
    return "减货成功";
  }
}
